import Vue from 'vue'
import VueRouter from 'vue-router'
import Bar from '../views/Bar'
import Pie from "../views/Pie";
import Table from "../views/Table";
import Edit from "../views/Edit";
import Add from "../views/Add";

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    component: Bar,
  },
  {
    path: '/pie',
    component: Pie
  },
  {
    path: '/table',
    component: Table
  },
  {
    path: '/edit',
    component: Edit
  },
  {
    path: '/add',
    component: Add
  }
]

const router = new VueRouter({
  routes,
  mode: "history"
})

export default router
